package com.study.demo_db_security_dynamic.service;

import com.study.demo_db_security_dynamic.bean.Menu;
import com.study.demo_db_security_dynamic.mapper.MenuMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: MenuService
 * @Description:
 * @author: WS
 * @date 2021/1/2
 * @Version: 1.0
 **/
@Service
public class MenuService {

    @Autowired
    MenuMapper mapper;

    public List<Menu> getAllMenus(){
        return mapper.getAllMenus();
    }
}
